﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using _4T.Data;
using _4T.DAL;

namespace _4T.BLL
{
    public class StationBLL
    {
        public StationBLL() { }

        private StationDAL m_StationDAL;
        public StationDAL StationDal
        {
            get
            {
                if (m_StationDAL == null) m_StationDAL = new StationDAL();
                return m_StationDAL;
            }
        }

        public int InsertStation(string stationID, string fullName, string addr, string desc)
        {
            return StationDal.InsertStation(stationID, fullName, addr, desc);
        }

        public int UpdateStation(string stationID, string fullName, string addr, string desc)
        {
            return StationDal.UpdateStation(stationID, fullName, addr, desc);
        }

        public CMS_Station GetStationByStationID(string stationID)
        {
            return StationDal.GetStationByStationID(stationID);
        }

        public List<CMS_Station> GetStationList(int page, int pageSize, string searchText)
        {
            return StationDal.GetStationList(page, pageSize, searchText);
        }

    }
}